
#ifndef TOUCH_SENSOR_H
#define TOUCH_SENSOR_H

#include "Nano100Series.h"

#define TOUCH_SENSOR_LEFT_KEY0_PORT		PA
#define TOUCH_SENSOR_LEFT_KEY0_BIT		BIT6
#define TOUCH_SENSOR_LEFT_KEY0_PIN		PA6

#define TOUCH_SENSOR_LEFT_KEY1_PORT		PA
#define TOUCH_SENSOR_LEFT_KEY1_BIT		BIT12
#define TOUCH_SENSOR_LEFT_KEY1_PIN		PA12

#define TOUCH_SENSOR_LEFT_KEY2_PORT		PC
#define TOUCH_SENSOR_LEFT_KEY2_BIT		BIT6
#define TOUCH_SENSOR_LEFT_KEY2_PIN		PC6

#define TOUCH_SENSOR_LEFT_KEY3_PORT		PB
#define TOUCH_SENSOR_LEFT_KEY3_BIT		BIT15
#define TOUCH_SENSOR_LEFT_KEY3_PIN		PB15

#define TOUCH_SENSOR_RIGHT_KEY0_PORT	PA
#define TOUCH_SENSOR_RIGHT_KEY0_BIT		BIT3
#define TOUCH_SENSOR_RIGHT_KEY0_PIN		PA3

#define TOUCH_SENSOR_RIGHT_KEY1_PORT	PC
#define TOUCH_SENSOR_RIGHT_KEY1_BIT		BIT3
#define TOUCH_SENSOR_RIGHT_KEY1_PIN		PC3

#define TOUCH_SENSOR_RIGHT_KEY2_PORT	PB
#define TOUCH_SENSOR_RIGHT_KEY2_BIT		BIT3
#define TOUCH_SENSOR_RIGHT_KEY2_PIN		PB3

#define TOUCH_SENSOR_RIGHT_KEY3_PORT	PB
#define TOUCH_SENSOR_RIGHT_KEY3_BIT		BIT2
#define TOUCH_SENSOR_RIGHT_KEY3_PIN		PB2


#define TOUCH_SENSOR_KEY_COUNT	4

typedef void (*TouchSensorHandle)(void);

void TouchSensorInit(void);
void TouchSensorDisable(void);
void TouchSensorEnable(void);
void TouchSensorSetHandleBrightnessPlus(TouchSensorHandle handle);
void TouchSensorSetHandleBrightnessMinus(TouchSensorHandle handle);
void TouchSensorSetHandleVolumePlus(TouchSensorHandle handle);
void TouchSensorSetHandleVolumeMinus(TouchSensorHandle handle);

#endif
